package cn.tedu.egmvc1.controller;

import cn.tedu.egmvc1.mapper.EmpMapper;
import cn.tedu.egmvc1.pojo.dto.EmpControllerDto;
import cn.tedu.egmvc1.pojo.entity.Emp;
import org.apache.catalina.User;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class EmpController {
    @Autowired
    private EmpMapper  empMapper;
    @RequestMapping("/emp/insert")
    @ResponseBody
    public String insert(EmpControllerDto EmpControllerDto)
    {
        Emp emp = new Emp();
        BeanUtils.copyProperties(EmpControllerDto ,emp);

           return "";
    }
}
